package com.kabigon.multiverse.exception;

import org.springframework.http.HttpStatus;

/**
 * 未定义的异常
 *
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.multiverse.exception
 * @data 2022/2/17 22:34
 */
public class UndefinedException extends BaseException {

    public UndefinedException(String message, Throwable cause) {
        super(message, cause);
    }

    public UndefinedException(Throwable cause) {
        super(cause);
    }

    public UndefinedException(String message) {
        super(message);
    }

    @Override
    public int getCode() {
        return HttpStatus.INTERNAL_SERVER_ERROR.value();
    }

    @Override
    public String getDescription() {
        return getCause().getMessage();
    }

    @Override
    public String getMessage() {
        return "未定义的异常错误信息";
    }


}
